import QtQuick 1.1
import com.nokia.symbian 1.1
import Particles 1.0

Page {
    id : root
    property alias particlesCount : particles.particles
    property alias particleSize : particles.particleSize
    property alias squareParticle : particles.squareParticle

    Particles {
        id : particles;
        anchors.fill: parent
        focus : true;
        enabled: true;
    }

    tools: ToolBarLayout {
        id: pageSpecificTools
        ToolButton {
            iconSource: "toolbar-back";
            onClicked:  Qt.quit()
        }
        ToolButton {
            iconSource: "toolbar-settings";
            onClicked: root.pageStack.push(window.settingsPage, {
                                               particlesCount:particlesCount,
                                               particleSize:particleSize,
                                               squareParticle:squareParticle
                                           }
                                           )
        }
    }
}
